import { instance } from "@/api/request";

function api_getSalary(userInfo,date) {
    console.log(userInfo,date,'api_getSalary')
  return instance({
        methods: 'get',
        url: '/admin/auth/getSalary',
        params: {
          user_id: userInfo ? userInfo.id : undefined,
          start: date ? date.start : undefined,
          end: date ? date.end : undefined
        }
      }).then (res => {
        return res.data
      })
}

export {api_getSalary}
